home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Modules / BackSpaceModules / Source / BattleView / Weapon.h < prev    next >
Text File  |  1994-05-04  |  1KB  |  45 lines

  1. /* Weapon.h -- interface for Weapon objects
  2.    Copyright (C) 1992, 1993 David A. Strout
  3.  
  4.    This program is free software; you can redistribute it and/or modify
  5.    it under the terms of the GNU General Public License as published by
  6.    the Free Software Foundation; either version 2, or (at your option)
  7.    any later version.
  8.  
  9.    This program is distributed in the hope that it will be useful,
  10.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  11.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12.    GNU General Public License for more details.
  13.  
  14.    You should have received a copy of the GNU General Public License
  15.    along with this program; if not, write to the Free Software
  16.    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  17.  
  18. /* Written by David Strout <dstrout@isi.edu>. */
  19.  
  20.  
  21.  
  22. #import <objc/Object.h>
  23. #import <appkit/appkit.h>
  24.  
  25. @interface Weapon:Object
  26. {
  27.   NXPoint from;
  28.   NXPoint to;
  29.   NXPoint current;
  30.   int current_age;
  31.   int max_age;
  32.   int type;
  33. }
  34.  
  35. - setFrom:(NXPoint *)thePoint;
  36. -(NXPoint *)from;
  37. - setTo:(NXPoint *)thePoint;
  38. - (NXPoint *)to;
  39. - setCurrent:(NXPoint *)thePoint;
  40. - (NXPoint *)current;
  41.  
  42.  
  43. @end
  44.  
  45.